﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Bll;
using Model;

namespace Myproject.BSM.PcWeb.PcChannel.Product
{
    public partial class ContactEdit : System.Web.UI.Page
    {
        private string imgaHtml;

        public string ImgaHtml
        {
            get { return imgaHtml; }
            set { imgaHtml = value; }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string ID = Request.QueryString["id"];
            if (!string.IsNullOrEmpty(ID))
            {
                GoodsCertificateModel model = new GoodsCertificateBLL().GetModel(int.Parse(ID));
                GoodsModel model2 = new GoodsBLL().GetModel(model.GoodsID);
                pc_Channel_GoodsCertificateEdit_GoodsCertificateId.Value = model.GoodsCertificateID.ToString();
                pc_Channel_GoodsCertificateEdit_GoodsID.Value = model2.GoodsID.ToString();
                pc_Channel_GoodsCertificateEdit_Goods.Value = model2.Name;
                imgaHtml = "<br>已上传资料：" + model.Loadurl ;
                pc_Channel_GoodsCertificateEdit_rank.Value = model.GoodsCertificateRank.ToString();
            }

        }
    }
}